package sb.mybatisp.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "course")
public class Course {
    private static final long serialVersionUID = 1L;//序列化

    @TableId(value = "id", type = IdType.AUTO)//主键注解
    private Long id;
    private long user_id;
    private String name;
}
